package wpspider.client.dao;

import java.util.List;

import wpspider.client.model.Page;

/**
 * PageDAO interface.
 */
public interface PageDAO {
    /**
     * Closes transaction.
     * @throws Exception
     */
    void close() throws Exception;

    /**
     * Gets Page from DB.
     * @param name Page name.
     * @return Page.
     */
    Page findByName(String name) throws Exception;

    /**
     * Gets List of Page from DB.
     * @param names List of page name.
     * @return List of page.
     * @throws Exception
     */
    List<Page> findByNames(List<String> names) throws Exception;
}
